package net.lmc.realtime.traffic.service;


import net.lmc.realtime.traffic.bean.TrafficFlowBean;
import net.lmc.realtime.traffic.bean.TrafficFlowTypeBean;
import net.lmc.realtime.traffic.mapper.TrafficFlowMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TrafficFlowServiceImpl implements TrafficFlowService{


    @Autowired
    TrafficFlowMapper trafficFlowMapper;

    @Override
    public List<TrafficFlowBean> getFlowCardCount(String date) {
        return trafficFlowMapper.SelectFlowCardCount(date);
    }

    @Override
    public List<TrafficFlowTypeBean> getFlowCardTypeCount(String date) {
        return trafficFlowMapper.SelectFlowCardTypeCount(date);
    }
}
